<extend name="./public/frame.html"/>
<block name="content">
    <blockquote class="layui-elem-quote search">
        优惠卷规则设置
    </blockquote>
    <form class="layui-form layui-form-pane1" action="" method="post">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">优惠卷规则链接</label>
            <div class="layui-input-block">
                <input type="text" name="url" value="{$data.url}" autocomplete="on" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //墨绿主题
            laydate.render({
                elem: '#test6-1' //指定元素
                , type: 'date'
                , theme: 'molv'
                //,range: true
                , trigger: 'click'
            });

            laydate.render({
                elem: '#test6-2' //指定元素
                , type: 'date'
                , theme: 'molv'
                //,range: true
                , trigger: 'click'
            });

        });
        layui.use('form', function () {
            var form = layui.form;
            //事件监听


        });

    </script>
</block>
